package com.controller;

import com.service.P_recoredService;
import com.util.P_recored;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
public class P_recoredController {
    @Resource
    private P_recoredService p_recoredService;

    @GetMapping("/person_record")
    @ResponseBody
    public List<P_recored> Person_record(@RequestParam String pAccount){
        return p_recoredService.see(pAccount);
    }
}
